//package com.itbaima.controller;
//
//import com.itbaima.pojo.entity.HrSalary;
//import com.itbaima.service.HrSalaryService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@Controller
//public class HrSalaryController {
//
//    @Autowired
//    private HrSalaryService hrSalaryService;
//
//    @GetMapping("/hrsalary")
//    public String getAllHrSalary(Model model) {
//        List<HrSalary> hrSalaryList = hrSalaryService.getAllHrSalary();
//        model.addAttribute("hrSalaryList", hrSalaryList);
//        System.out.println(hrSalaryList);
//        return hrSalaryList.toString();
//
//    }
//}
////        return "hrsalary";  // 返回到 JSP 页面